CXX=g++
CXXFLAGS=-g -Wall -Werror `sdl-config --cflags`
LFLAGS=`sdl-config --libs`
DOXYGEN=doxygen

OBJS=src/main.o

all: doc program

doc: 
	$(DOXYGEN)
program: $(OBJS)
	$(CC) $(LFLAGS) $^ -o $@
 
clean:
	rm -rf *.o program src/*.o


$(OBJS): %.o: %.cpp
	$(CC) -c $(CXXFLAGS) $< -o $@

.PHONY: program clean
